<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .gradient {
            background-color: brown;
            float: left;
            transition: 7s;
        }

        .gradient>.gradient2 {
            width: 100px;
            height: 100px;
            background-color: green;
            float: left;
            transition: 2s;

        }

        .gradient:active {
            margin-top: 1800px;
            margin-left: 1200px;
            transition: 20s ease-out;
            transform: rotate(411470deg);

        }


        .gradient2:hover {
            width: 1000px;
            height: 1000px;
            background: linear-gradient(to left, red, green);
            transition: 5s ease-in;
            border-radius: 50%;
            margin: -200px;
        }
    </style>
</head>

<body>
    <div class="gradient" style="padding: 100px;">
        <div class="gradient2" style="background-color: aqua;"></div>
    </div>

</body>

</html>